package com.fengye.eshop.service.controller;

import com.fengye.eshop.api.UserApi;
import com.fengye.eshop.service.config.ConfigProperties;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author fengyexjtu@126.com
 * @date 2022年05月14日 5:01 PM
 */
@RestController
public class UserController implements UserApi {

    @Resource
    private ConfigProperties configProperties;

    @GetMapping("/order/config")
    public Object getConfig() {
        return configProperties.toString();
    }

    @Override
    public String getUserInfoById(String userId) {
        return "user information: userid = " + userId;
    }
}
